package com.wangdao.wechatmall.bean.vo.admin;

import java.util.List;

/**
 * @ClassName: RoleDataVO
 * @Description ${DESCRIPTION}
 * @Author Xinhao Yi
 * @Date 2021/7/9  20:24
 */
public class RoleDataVO {

    /**
     * total : 11
     * items : [{"id":37,"name":"后勤管理员","desc":"保安大队","enabled":true,"addTime":"2021-07-09 20:13:21","updateTime":"2021-07-09 20:13:21","deleted":false}]
     */

    private int total;
    private List<RoleBeanVO> items;

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<RoleBeanVO> getItems() {
        return items;
    }

    public void setItems(List<RoleBeanVO> items) {
        this.items = items;
    }

    public static RoleDataVO ok(int total,List<RoleBeanVO> items){
        RoleDataVO roleDataVO = new RoleDataVO();
        roleDataVO.setTotal(total);
        roleDataVO.setItems(items);
        return roleDataVO;
    }


}
